﻿<DockableContent
    x:Class="Poet.Views.RhymerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="{Localizing Rhymer}"
    Height="{ViewModel DefaultValue=300}"
    Width="{ViewModel DefaultValue=300}" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="207" d:DesignWidth="283">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Margin="4" Orientation="Horizontal">
            <TextBlock Margin="4" Text="{Localizing Word, StringFormat='{}{0}:'}" VerticalAlignment="Center"/>
            <TextBox Name="Word" Text="{Binding Word, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" MinWidth="120"/>
        </StackPanel>
        <DataGrid Grid.Row="1" ItemsSource="{Binding Words}"></DataGrid>
    </Grid>
</DockableContent>
